/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bookshop.managedBean;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;

/**
 *
 * @author Thibault
 */
public class CartManagedBean {

    private double amountCart = 0.00;
    private int productCount = 0;

    public double getAmountCart() {
        return amountCart;
    }
    public void setAmountCart(double amountCart) {
        this.amountCart = amountCart;
    }
    public int getProductCount() {
        return productCount;
    }
    public void setProductCount(int productCount) {
        this.productCount = productCount;
    }
    
    /**
     * Creates a new instance of CartManagedBean
     */
    public CartManagedBean() {
    }
    
    public void CartClickEvent(ActionEvent actionEvent) {
        FacesContext context = FacesContext.getCurrentInstance();
        
        context.addMessage(null, new FacesMessage("Panier", "Accès au panier en cours de réalisation"));
    }
}
